#include <iostream>
#include "sqstack.h"

int main()
{
    SqStack<int, 8> S;
    InitStack(S);

    Push(S, 100);
    Push(S, 200);
    Push(S, 300);
    Push(S, 400);
    Push(S, 500);
    Push(S, 600);


    while (!StackEmpty(S))
    {
        int e;
        Pop(S, e);
        std::cout << e << std::endl;
    }
    return 0;
}